/**
 * This file is part of maemo-examples package
 *  
 * This maemo code example is licensed under a MIT-style license,
 * that can be found in the file called "COPYING" in the same
 * directory as this file.
 * Copyright (c) 2007-2008 Nokia Corporation. All rights reserved.
 *
 * @author Shahzad Hussain Bangash
 * ext-shahzad.bangash@nokia.com
 * 
 */

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>

extern "C" {

#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
#include <bluetooth/rfcomm.h>

}

#ifndef BLUES_H
#define BLUES_H

class BlueKlass{
public:
    BlueKlass();
    ~BlueKlass();
    void scan();
   // void send_File();
    bool connect_Remote(int, char**);
    void send_Data();
    int listen_for_Connections();

private:
    inquiry_info *inquiry;
    int max_rsp, num_rsp;
    int dev_id, sock, len, flags, client, bytes_read;
    int i;
    char addr[19];
    char name[248];
    char incoming_Data[1024];
    socklen_t opt;
    int chk_Status;
    char buff[100];
    int counter;
};
#endif
